package cn.xn.hrms.infrastructure.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.xn.hrms.api.dto.res.MenuDTO;

public interface MenuDao {

    int insertSelective(MenuDTO record);

    MenuDTO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(MenuDTO record);

    List<MenuDTO> findAllByIdIn(@Param("idCollection") List<Long> idCollection);

    List<MenuDTO> findAll();

    Long countByParentId(@Param("parentId")Long parentId);
    int updateIsDeletedById(@Param("updatedIsDeleted")Integer updatedIsDeleted,@Param("id")Long id);

}
